package com.TestDemo.Test2;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/11/03/14:15
 * @Description:
 * @Target:
 */
public class TestTree {


    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        Class<TestTree> testTreeClass = TestTree.class;
        TestTree testTree = testTreeClass.newInstance();
        

    }


    public class Tree{
        TreeNode root;
    }


    public class TreeNode{
        int val;
        TreeNode left;
        TreeNode right;
    }



    public void process(TreeNode root){
        if(root==null){
            return;    // 叶子的终止
        }
//        System.out.print(root.val+" "); // 先
        process(root.left); // 左
 //        System.out.print(root.val+" "); // 中
        process(root.right); // 右
//        System.out.print(root.val+" "); // 后
    }



}


